﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Windows.Media;
using System.ComponentModel;

namespace XBS.Model
{
    public class Para : INotifyPropertyChanged
    {
        public string Index { get; set; }
        public string Paragraph { get; set; }
        public string Detail { get; set; }
        public string ImgSrc { get; set; }

        private Color foreground;
        public Color Foreground
        {
            get
            {
                return foreground;
            }
            set
            {
                foreground = value;
                RaisePropertyChanged("Foreground");
            }
        }

        private Color background;
        public Color Background
        {
            get
            {
                return background;
            }
            set
            {
                background = value;
                RaisePropertyChanged("Background");
            }
        }

        private double fontSize;
        public double Fontsize
        {
            get
            {
                return fontSize;
            }
            set
            {
                fontSize = value;
                RaisePropertyChanged("Fontsize");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        public void RaisePropertyChanged(String propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
